home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
BASIC
/
LIB
/
EVENTSHELL
/
SLIDERS
/
!Sliders
/
!Sliders
(
.txt
)
< prev
next >
Wrap
RISC OS BBC BASIC V Source
|
1995-10-01
|
4KB
|
116 lines
> <Sliders$Dir>.!Sliders
$;" at line "+
"<EvntShell$Path>ShellLibRT"
shell_FatalError
"Hourglass_On"
"Wimp_SlotSize",-1,-1
progsize%
pagesize%=1<<10
freespace%=&8000+progsize%
=freespace%+pagesize%
=freespace%
shell_HeapManagerInit("<EvntShell$Path>",freespace%)
shell_Init
*task%=
shell_WimpInit_I(200,"Sliders")
shell_TraceInit("")
PROCshell_TraceOn
shell_ResourcesInit
app_init
-------------------- Initialise Variables ----------------------------
G_closedown% =
Set this to TRUE when you want the program to
! :
-------------------- Miscelleanous Initialisation --------------------
"Hourglass_Off"
shell_Error
shell_Action(
shell_Poll_I(0,task%))
_closedown%
PROCshell_EvntSave_AllEvnts( "<Sliders$Dir>.EvntData" )
shell_Exit:
======================================================================
app_init
SetUp_Windows
SetUp_Menus
SetUp_IconBar
===== Menu_Setup routines ======================================
SetUp_Menus
void%
;UMenuHandle_IconBar%=
shell_MenuNew(
shell_MessageNoArgs("MTIBar"),"Menu_IBar",2 )
<IMenuItem_Info% =
shell_MenuAdd(0,
shell_MessageNoArgs("Info"),"")
=Yvoid% =
shell_MenuAdd(0,
shell_MessageNoArgs("Quit"),"_MenuSelect_Quit")
shell_AttachMenuDBox(MenuItem_Info%,"progInfo","_PreOpenInfo","")
===== Window_SetUp routines ====================================
SetUp_Windows
shell_CreateWindowStatic("mainw",mainw%)
shell_CreateWindowStatic("mainw2",mainw2%)
H9s1% =
shell_AttachSliderHandler(mainw%,2,3,4,6,7,"")
JKs2% =
shell_AttachSliderHandler(mainw2%,1,2,-1,-1,-1,"_Slider_MainW2")
KKs3% =
shell_AttachSliderHandler(mainw2%,4,5,-1,-1,-1,"_Slider_MainW3")
LKs4% =
shell_AttachSliderHandler(mainw2%,7,8,-1,-1,-1,"_Slider_MainW4")
MMs5% =
shell_AttachSliderHandler(mainw2%,10,11,-1,-1,-1,"_Slider_MainW5")
shell_SliderSetValue( s1%, 80 )
shell_SliderSetValue( s5%, 50 )
_test_FN( font_handle% )
99,"Font change detected: font handle is:& "+
~font_handle%
===== IconBar_SetUp routines ===================================
SetUp_IconBar
]Ssicon=
shell_Iconbar(-1,"!"+
shell_GetAppName,"",120,MenuHandle_IconBar%,0,0,0)
shell_AttachHelpTag(-1,sicon,"iconbar")
shell_AttachClickSelect(-1,sicon,"_ClickSelect_IconBar")
===== Dialog_PreOpen routines ==================================
_PreOpenInfo(wh%)
shell_IconPutData(wh%,0,
shell_MessageNoArgs("progInfo0"),0)
shell_IconPutData(wh%,1,
shell_MessageNoArgs("progInfo1"),0)
shell_IconPutData(wh%,2,
shell_MessageNoArgs("progInfo2"),0)
shell_IconPutData(wh%,3,
shell_MessageNoArgs("progInfo3"),0)
===== Dialog_PostOpen routines =================================
===== Click_Select routines ====================================
_ClickSelect_IconBar(wh%,icon%)
shell_OpenWindowStatic(mainw%)
shell_OpenWindowStatic(mainw2%)
===== Click_Adjust routines ====================================
===== Menu_Select routines =====================================
_MenuSelect_Quit(blk%)
_closedown%=
===== Menu_Warning routines ====================================
===== Data_Load routines =======================================
===== Data_Save routines =======================================
===== Slider Handling routines =================================
_Slider_MainW1(val%)
shell_Tracef0("_Slider_MainW1: value change ("+
val%+")")
_Slider_MainW2(val%)
shell_Tracef0("_Slider_MainW2: value change ("+
val%+")")
_Slider_MainW3(val%)
shell_Tracef0("_Slider_MainW3: value change ("+
val%+")")
_Slider_MainW4(val%)
shell_Tracef0("_Slider_MainW4: value change ("+
val%+")")
_Slider_MainW5(val%)
shell_Tracef0("_Slider_MainW5: value change ("+
val%+")")
===== User application routines ================================
================= End Of User Application ======================